﻿namespace Framework
{

    public interface IUIForm
    {

        IUIGroup UIGroup { get; set; }
        public UIFormLogic uiFormLogic{ get; set; }
        int SerialId { get; set; }
        /// <summary>获取界面在界面组中的深度。</summary>
        int DepthInUIGroup { get; }
        /// <summary>获取界面实例。</summary>
        object Handle { get; set; }
        /// <summary>获取界面资源名称。</summary>
        string UIFormAssetName { get; }
        void OnInit(int serialId, string uiFormAssetName, IUIGroup uiGroup, bool pauseCoveredUIForm, bool isNewInstance, object userData);
        void OnOpen(object userData);
        void OnClose(object userData);
        void OnRecycle();
        void OnUpdate(float elapseSeconds, float realElapseSeconds);
        void OnDepthChanged(int uiGroupDepth, int depthInUIGroup);
    }

}